/**
 * A holder for each ToDoItem, it is empty when first created.
 */
package edu.gatech.stolen.tea;

public class ToDoItem {
	
	private String name;
	private String description;
	private String location;
	private Month dateGiven;
	private Month dueDate;
	private ItemType type;
	private boolean done;
	
	public ToDoItem() {
		
		setName(null);
		setDescription(null);
		setLocation(null);
		Month m = Month.APRIL;
		m.setDay(Day.EIGHTH);
		m.setYear(1999);
		setDateGiven(m);
		setDueDate(m);
		setType(ItemType.PERSONAL);
		setDone(false);
		
	}
	
	/**
	 * gets the name of the item held by this specific ToDoItem
	 */
	public String getName() {
		
		return name;
		
	}
	
	/**
	 * sets the name of the item held by this specific ToDoItem
	 */
	public void setName(String name) {
		
		this.name = name;
		
	}
	
	/**
	 * gets the description of the item held by this specific ToDoItem
	 */
	public String getDescription() {
		
		return description;
		
	}
	
	/**
	 * sets the description of the item held by this specific ToDoItem
	 */
	public void setDescription(String description) {
		
		this.description = description;
		
	}
	
	/**
	 * gets the location that the user must go to to do the item held by this specific ToDoItem
	 */
	public String getLocation() {
		
		return location;
		
	}
	
	/**
	 * sets the location that the user must go to to do the item held by this specific ToDoItem
	 */
	public void setLocation(String location) {
		
		this.location = location;
		
	}
	
	/**
	 * gets the date that the item held by this specific ToDoItem was given to user
	 */
	public Month getDateGiven() {
		
		return dateGiven;
		
	}
	
	/**
	 * sets the date that the item held by this specific ToDoItem was given to user
	 */
	public void setDateGiven(Month month) {
		
		this.dateGiven = month;
		
	}
	
	/**
	 * gets the date that the item held by this specific ToDoItem is to be done by
	 */
	public Month getDueDate() {
		
		return dueDate;
		
	}
	
	/**
	 * sets the date that the item held by this specific ToDoItem is to be done by
	 */
	public void setDueDate(Month month) {
		
		this.dueDate = month;
		
	}
	
	public ItemType getType() {
		
		return type;
		
	}

	public void setType(ItemType type) {
		
		this.type = type;
		
	}

	public boolean isDone() {
		
		return done;
		
	}

	public void setDone(boolean done) {
		
		this.done = done;
		
	}

}
